package cn.wzptsoft.mall.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName(value="`order`",autoResultMap = true)
@Data
@Builder
public class Order {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String orderNo;
    private Integer userId;
    private BigDecimal totalAmount;
    private Integer totalCount;
    @TableField(value = "snap_address",typeHandler = JacksonTypeHandler.class)
    private SnapAddressInfo snapAddress;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long creator;
    private Long updater;

    // Getters and Setters
}